from scipy import stats

def main():
    obs = [336,128]
    exp = [332,132]

    # obs = [334,128]
    # exp = [330,132]

    # obs = [441,222]
    # exp = [445,218]

    # obs = [35776,17575]
    # exp = [266675.5,26675.5]

    print(stats.chisquare(obs,f_exp=exp))


if __name__ == '__main__':
    main()
